Skip to content

Bugfix/154 colorstate comparison fails when comparing with null values#155

Open
DivineThreepwood wants to merge 22 commits intodevfrom
bugfix/154-colorstate-comparison-fails-when-comparing-with-null-values
Open

Bugfix/154 colorstate comparison fails when comparing with null values#155
DivineThreepwood wants to merge 22 commits intodevfrom
bugfix/154-colorstate-comparison-fails-when-comparing-with-null-values

Conversation

@DivineThreepwood
Copy link
Copy Markdown
Member

📜 Description

Changes proposed in this pull request:

  • fix color state equals check
    • fix home assistant initial color lamp sync issue between hass and bco with it..
  • handle hue values 0 and 360 as equals
  • implement tests to prove implementation

✅ Checklist:

  • Created tests which fail without the change

@DivineThreepwood DivineThreepwood linked an issue Feb 18, 2026 that may be closed by this pull request
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 18, 2026

Deploy Preview for basecubeone canceled.

Name Link
🔨 Latest commit 0beec80
🔍 Latest deploy log https://app.netlify.com/projects/basecubeone/deploys/69d4330d0698440008b32394

@DivineThreepwood DivineThreepwood added the preview Auto build a docker image and deploy it as a preview version. label Feb 18, 2026
@lhuxohl lhuxohl removed their assignment Mar 10, 2026
@DivineThreepwood DivineThreepwood removed the preview Auto build a docker image and deploy it as a preview version. label Mar 10, 2026
lhuxohl
lhuxohl previously approved these changes Mar 10, 2026
lhuxohl
lhuxohl previously approved these changes Mar 18, 2026
try {
if (getActionDescription().getIntermediary()) {
for (final RemoteAction impactedRemoteAction : impactedRemoteActions) {
for (final RemoteAction impactedRemoteAction : impactedRemoteActions.stream().toList()) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this ported to a stream and then to a list?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ColorState comparison fails when comparing with null values

2 participants